package com.molichuxing.services.business.dto.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * Description: 里程包可选套餐Dto
 * @auther: dengc
 * @date: 2019/4/18 13:02
 */
@Data
public class GoodsMileagePackageReletBizDto  extends GoodsSpecBizDto {
	private static final long serialVersionUID = 4611519365730722730L;

	@ApiModelProperty(value = "里程包套餐ID")
    private Integer packageId;

	@ApiModelProperty(value = "公里数")
	private Integer miles;

	@ApiModelProperty(value = "赠送里程（0：不赠送）")
	private Integer giftMiles;

	@ApiModelProperty(value = "公里数str")
	private String milesStr;

	@ApiModelProperty(value = "费用")
	private BigDecimal fee;

	@ApiModelProperty(value = "费用str")
	private String feeStr;

	public void setMiles(Integer miles) {
		this.miles = miles;
		this.milesStr = miles == null ? null : miles + "公里";
	}

	public void setFee(BigDecimal fee) {
		this.fee = fee;
		this.feeStr = fee == null ? null : "¥" + fee;
	}
}